package com.tina.entity;

import lombok.Data;

import java.util.Map;

/**
 * @author Tina
 * @version 1.0
 * @since 2021/10/29 17:19
 **/
@Data
public class GraphLinkPojo {
    private String source;
    private String target;
    private Integer value = 15;

    public GraphLinkPojo() {

    }

    public GraphLinkPojo(Map<String, GraphDataPojo> dataMap, StringBuffer bufferSource, StringBuffer bufferDest) {
        this.source = dataMap.get(bufferSource.toString()).getName();
        this.target = dataMap.get(bufferDest.toString()).getName();
    }
}
